package com.dzpk.gameserver;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import somnus.utility.CommonUtils;

import java.io.IOException;

public class GameStart {

    private static final String PID = "GameStart.pid";

    /**
     * @param args
     * @throws IOException
     */
    public static void main(String[] args) {
        try {
            new ClassPathXmlApplicationContext("spring.xml");
            ServerInit.initAndStart();
            CommonUtils.savePid(PID);
        } catch (Exception e) {
            e.printStackTrace();
            System.exit(-1);
        }
    }

}
